type IType = { isString: (value: any) => boolean, isArray: (value: any) => boolean, isNumber: (value: any) => boolean, isObject: (value: any) => boolean }
const Type = {} as IType
Type.isNumber = (value) => true
type ItypeName = 'String' | 'Array' | 'Number' | 'Object'
const typeArray: ItypeName[] = ['String', 'Array', 'Number', 'Object']
typeArray.forEach((typeName) => {
  Type[`is${typeName}`] = (value) => Object.prototype.toString.call(value) === `[object ${typeName}]`
})
export default Type

